package org.example.function;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class ReadFile1 {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        DataStreamSource<String> text = env.readTextFile("file:///opt/apps/flink-1.14.5-bin-scala_2.11/create_hudi_table.sql");
        text.print();
        env.execute("ReadFile2");
    }
}
